package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.EsignTaskEntity;

import java.util.List;
import java.util.Map;

/**
 * e签宝任务
 * 创建时间 2020/6/20 2:04 PM
 * 修改时间 2020/6/20 2:04 PM
 * @author chy
 */
public interface EsignTaskModel extends IModel<EsignTaskEntity> {
    @Override
    Integer insert(EsignTaskEntity entity);

    @Override
    Integer update(EsignTaskEntity entity);

    Integer save(EsignTaskEntity entity);

    Integer deleteByKey(Long key);

    EsignTaskEntity getByKey(Long key);

    EsignTaskEntity getByFormId(String corpid, Integer type, Long formId, Long dataId);

    EsignTaskEntity getByTaskId(String taskId);

    @Override
    List<EsignTaskEntity> findEntitys(Map<String, Object> param);

    @Override
    Integer getEntitysCount(Map<String, Object> param);
}
